<%@ include file="/common/taglibs.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri='/WEB-INF/cewolf.tld' prefix='cewolf' %>
<fmt:message key="reportMaterialGral.graphicReport" scope="request" var="report"/>
<fmt:message key="reportMaterialGral.periods" scope="request" var="periods"/>
<fmt:message key="reportMaterialGral.amounts" scope="request" var="amounts"/>

<c:if test="${not empty imageGenerate}">
<fieldset>
<table>
    <tr>
        <td>
            <cewolf:chart
                id="line"
                title="${report}"
                type="line"
                xaxislabel="${periods}"
                yaxislabel="${amounts}">
                <cewolf:data>
                    <cewolf:producer id="imageGenerate"/>
                </cewolf:data>
            </cewolf:chart>
            <p>
            <cewolf:img chartid="line" renderer="/cewolf" width="700" height="300"/>
            </p>
        </td>
    </tr>
    <tr>
        <td>
            <br/>
            <c:if test="${not empty listMaterialReport}">
            <table class="table">
                <caption><center><fmt:message key="reportMaterialGral.report"/></center></caption>
                <thead>
                    <tr>
                        <th><fmt:message key="reportMaterialGral.imagen.id"/></th>
                        <th><fmt:message key="reportMaterialGral.imagen.name"/></th>
                        <s:iterator value="listMaterialReportHeaders">
                            <th><s:property /></th>
                        </s:iterator>
                        <th><fmt:message key="reportMaterialGral.imagen.total"/></th>
                    </tr>
                </thead>
                <tbody>
                        <s:iterator value="listMaterialReport" status="status">
                            <tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>" style="cursor: pointer;">
                               <td><s:property value="id" /></td>
                               <td><s:property value="materialName" /></td>
                               <s:iterator value="values">
                                 <td><s:property/></td>
                               </s:iterator>
                               <td><s:property value="totalValue" /></td>
                            </tr> 
                        </s:iterator>
                        <tr>
                            <td></td>
                            <td></td>
                            <s:iterator value="listMaterialReportHeaders">
                            <td></td>
                            </s:iterator>
                            <td><s:property value="totalReport" /></td>

                        </tr>
                    
                </tbody>
             </table>
             </c:if>
        </td>
    </tr>

</table>
</fieldset>
</c:if>